package net.qiqbframework.eventhandling.distributing;

import net.qiqbframework.eventhandling.EventMessage;
import net.qiqbframework.eventhandling.gateway.EventGateway;

import java.util.List;

public class LocalEventChannel implements EventChannel {

    private final EventGateway eventGateway;

    public LocalEventChannel(EventGateway eventGateway) {
        this.eventGateway = eventGateway;
    }


    @Override
    public void sendEventMessage(EventMessage<?> eventMessage) {
        eventGateway.publish(eventMessage);
    }
}
